package com.cn.byjk.service;

import com.cn.byjk.hystrixHandle.fundFalseHandle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * @author zhangdianzhi
 * @version v1.0
 * @description 基础服务接口调用
 * @date 2022/1/10 10:59
 */
@FeignClient(name = "fund-server" ,fallback = fundFalseHandle.class)
@Component
public interface FundService {

    @GetMapping("/foreign/getMoney/{userid}")
    public BigDecimal getMoney(@PathVariable("userid")Long userid);
}
